
package org.movee.spring.data.hugegraph.annotation;

import org.springframework.data.annotation.Persistent;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Specifies the testDomain class as graph, with one optional collection(String).
 */
@Persistent
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Graph {
    /**
     * The collection of given Graph.
     * @return class name if not specify.
     */
    String label() default "";
}
